import { createApp } from 'vue'
import { createUI } from 'taro-ui-vue3'
import toast from "./utils/toast"
import {setStorageSync} from "@tarojs/taro"
import './app.scss'
import './theme/custom-theme.scss'
// import 'taro-ui-vue3/dist/style/index.scss'

import './icons/icons.css'


const App = createApp({
    onLaunch (options) {
      setStorageSync('current',0)
    },
  // 入口组件不需要实现 render 方法，即使实现了也会被 taro 所覆盖
})

const tuv3 = createUI()
App.use(tuv3)

App.config.globalProperties.$toast = toast;
                               
export default App;
